package com.kmzx.one.project.mapper;

import com.kmzx.one.project.others.common.IdAndKinds;
import com.kmzx.one.project.others.dso.ProdTransInfo;
import com.kmzx.one.project.others.dso.WarehouseStoreDso;
import com.kmzx.one.project.others.dto.ProdCateInfo;
import com.kmzx.one.project.others.dto.ProdOutInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ProdBaseMapper {

//    ProdBaseInfo checkProdFast(String prodId);

    List<WarehouseStoreDso> findProdStore(@Param("prodId") String prodId);

    List<ProdTransInfo> findProdTransRoadInfo(@Param("tradeNum") String tradeNum);

    List<ProdTransInfo> findProdTransRoadInfo2(@Param("tradeType") Integer tradeType);

    String selectRepoName(@Param("tradeNum") String tradeNum);

    List<ProdCateInfo> selectProdCateInfo(@Param("levels") Integer levels, @Param("list") List<Integer> cateIds);

    List<ProdOutInfo> selectProdOfCateInfo(@Param("cateId") Integer cateId);

    List<ProdOutInfo> selectProdOfCateInfos(@Param("list") List<Integer> cateIds);

    ProdCateInfo selectCateById(@Param("cateId") Integer cateId);

    List<IdAndKinds> selectIdAndKinds();
}
